package com.xli.organ.role.framerole.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xli.organ.role.framerole.entity.FrameRole;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface IFrameRoleService extends IService<FrameRole> {

    boolean insert(@NotNull FrameRole frameRole);

    boolean delete(@NotNull Long id);

    boolean update(@NotNull FrameRole frameRole);

    FrameRole find(@NotNull Long id);

    List<FrameRole> findList(@NotNull QueryWrapper<FrameRole> qw);

    long findCount(@NotNull QueryWrapper<FrameRole> qw);

    Page<FrameRole> findList(@NotNull QueryWrapper<FrameRole> qw, @NotNull long current, @NotNull long size);

    List<FrameRole> findAllRoleList();

    FrameRole findByName(@NotNull String name);
}
